<?php
namespace Leaps\Cache;
use Leaps\Base\ServiceProvider;
class CacheServiceProvider extends ServiceProvider {

	/**
	 * 是否延迟加载
	 *
	 * @var bool
	 */
	protected $defer = true;

	/**
	 * 注册服务
	 *
	 * @return void
	 */
	public function register()
	{
		$this->app['cache'] = $this->app->share(function($app)
		{
			return new CacheManager($app);
		});
	}

	/**
	 * Get the services provided by the provider.
	 *
	 * @return array
	 */
	public function provides()
	{
		return array('cache');
	}

}